﻿@using CodeCamp.Models.Home
@model HomeAboutViewModel
@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.EventName = "";
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = ("About Code Camp: " + @Model.EventDisplayName);
        ViewBag.EventName = @Model.EventDisplayName;
    }
    else
    {
        ViewBag.Title = "About Code Camp";
        ViewBag.EventName = "Code Camp";
    }
}

<h2 class="title">@ViewBag.Title</h2>

<h3>What is a Code Camp?</h3>
<p>Since their inception by members of the local community here in Boston more than 8 years ago,
 the concept of Code Camps has spread around the world and strengthened many local developer
 communities. Code Camps are all about developers sharing knowledge with fellow developers
 in an open format and an informal setting.</p>

<p>The first-ever Code Camp was held at the Microsoft Northeast Region office in Waltham, Massachusetts.</p>

<h2>The Code Camp Manifesto</h2>

<h3><a href="http://blogs.msdn.com/b/trobbins/archive/2004/12/12/280181.aspx" target="_blank">Read the Manifesto</a></h3>
<br />
<h3>Want to find a Code Camp in a different area?</h3>
<p>Check out the <a href="http://www.codecampatlas.org/" target="_blank">Code Camp Atlas</a>.</p>
<br />
<h2>By and For the Greater Boston Technical Community</h2>
<p>Boston Code Camp is a day of presentations by and for the greater Boston technical community.
 The Code Camp organizers encourage presenters to share a diverse set of technologies, and submissions
  by a range of presenters from new to highly experienced.</p>

<h2>Code Camp is volunteer driven</h2>
<p>Boston Code Camp is made possible by the contributions of @Html.ActionLink("many volunteers", "Index", "Volunteers", new { eventName=Model.EventShortName }, null)</p>

@if (@Model.DefaultEventShortName == @Model.EventShortName)
{
    <a id="priorCamps"></a>
    <h3>See what has been presented at prior Boston Code Camps</h3>
    <ul>
    @foreach (var ccevent in Model.OtherCCEvents)
    {
        <li>
        @Html.ActionLink(ccevent.DisplayName, "Index", new { eventName = ccevent.ShortName })
        @if (!ccevent.EventIsPublic)
        {
            <b>Not Public</b>
        }
        <span>@ccevent.DisplayDate</span>
        </li>
    }
    </ul>
}

@section sidebar {
    <div id="subLinksContainer" class="widget rounded-10">
    <h3>About</h3>
    <ul>
        @if ((Model != null) && Model.ShowAboutDirections)
        {
            <li>@Html.ActionLink("Directions", "Directions", "Home", new { eventName = Model.EventShortName }, null)</li>
        }
        <li>@Html.ActionLink("Other Boston Code Camps", "OtherCCEvents", "Home", new { eventName = Model.EventShortName }, null)</li>
        <li>@Html.ActionLink("Questions? - Contact Us", "Contact", "Home", new { eventName = Model.EventShortName }, null)</li>
    </ul>
    </div>
    
    @Html.Partial("SidebarCommonPartial")
}
